import { createRouter,createWebHashHistory } from 'vue-router';
//引入components单体文件
// import Home from './components/Home.vue' 
import { tabList } from './tabList';
// #createRouter创建路由
const router = createRouter({
    history:createWebHashHistory(),
    //用哈希模式
    routes:[
        {
            path:'/',
            component:()=>import("@/pages/HomeView.vue"), //懒引入的components单体文件
            children: tabList
        }
    ]
});

export default router; //暴露router路由
